Skip to content

Conversation

@andrewor14
Copy link
Contributor

Running into this error when calling aten.t() on Float8Tensor:

RuntimeError: Cannot set version_counter for inference tensor

See pytorch/pytorch#164872

Running into this error when calling `aten.t()` on `Float8Tensor`:

```
RuntimeError: Cannot set version_counter for inference tensor
```

See pytorch/pytorch#164872
@andrewor14 andrewor14 marked this pull request as draft October 12, 2025 22:20
# Cannot set version_counter for inference tensor
# Turning off inference mode for now
# See https://github.com/pytorch/pytorch/issues/164872 for more details
with torch.inference_mode(False):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aren't we better off using no_grad here instead of completely disabling inference_mode @danielhanchen ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants